class: center, middle, inverse, title-slide # R & Rstudio ## an Introduction ### Fabio CRUZ ### Université de Lorraine ### 2021/02/01 (updated: 2021-01-31) --- # Learning outcomes At the end of this - You will have a first encounter with R & Rstudio software and its importance for open science - You will have a basic understanding of the main functions. --- # Agenda of this sprint ### 1. Understanding the Rstudio ### 2. Data Visualization: an Intro --- # What is R project? <img src="https://www.r-project.org/Rlogo.png" alt="logo Rstudio" style="width:150px;" align="right"> R is a programming language and free software environment for statistical computing and graphics. .left-column[ - R’s mission is to enable the best and most thorough exploration of data possible . - It change the way people analyze, visualize, and manipulate data https://www.r-project.org/ ] .right-column[ <img src="data:image/png;base64,#img/R-project-00.jpg" width="80%" style="display: block; margin: auto;" /> Useful, but the interface is a little bit scary!.. ] --- # What is RStudio <img src="https://d33wubrfki0l68.cloudfront.net/57299a1dcd979c623325f11bf5e5ce60f3d4eb00/e4602/wp-content/uploads/2018/10/black.png" alt="logo Rstudio" style="width:150px;" align="right"> <img src="data:image/png;base64,#img/RStudio-00.jpg" width="70%" style="display: block; margin: auto;" /> RStudio is an integrated development environment (IDE) that provides an interface by adding many convenient features and tools. --- # R vs RStudio <img src="data:image/png;base64,#https://moderndive.netlify.app/images/shutterstock/R_vs_RStudio_1.png" width="90%" style="display: block; margin: auto;" /> --- class: middle center .assignment.infobox[ .Large[Hands on the workshop!.] The main goal is to create an Rstudio account, and to connect it with Github ] --- # Using Rstudio Cloud account (Recommended) .left-column[ 1. Sign up for free version: https://rstudio.cloud/ 2. Use you github account! 3. Voila!, C'est bon **Timming**: 5 min ] .right-column[ <img src="data:image/png;base64,#img/RStudio-cloud-00.jpg" width="90%" style="display: block; margin: auto;" /> ] .infobox.important.pull-down[ **RStudio Cloud is a webpage**, so no installation is required. However, as you have notice, there is some restrictions in the quantity of project and the virtual machine assigned to you. It's the best option to get start!] --- # Connecting Github repo with Rstudio <img src="data:image/png;base64,#img/Rstudio-Github-00.png" width="90%" style="display: block; margin: auto;" /> --- # Connecting Github repo with Rstudio <img src="data:image/png;base64,#img/Rstudio-Github-01.png" width="90%" style="display: block; margin: auto;" /> --- <img src="data:image/png;base64,#img/Rstudio-Github-01-1.png" width="90%" style="display: block; margin: auto;" /> --- # Understanding Rstudio Interface <img src="data:image/png;base64,#img/Rstudio-Github-02.png" width="60%" style="display: block; margin: auto;" /> - 4 panels to understand --- # Installing the packages to run the tutorials <img src="data:image/png;base64,#img/Rstudio-Github-04.png" width="70%" style="display: block; margin: auto;" /> --- class: middle # Hands on the PC! - Open `Tutorials >01-basics > 01-Programming > 01-Programming-Basics-fr.Rmd` - Run the document .infobox.assignment[ **Objective** - This tutorial will learn you the basic skills to understand R language (and `console` panel). You will go step-by-step in each analysis: how to understand the basics of R language, as well as how to **run code** with the basic functions. ] --- <img src="data:image/png;base64,#img/Rstudio-Github-06.png" width="80%" style="display: block; margin: auto;" />
25
:
00
--- # Adding the key to connect -`Tools > Global Options > ` <img src="data:image/png;base64,#img/Rstudio-Github-03.png" width="50%" style="display: block; margin: auto;" /> - Commit your changes on Github! --- class: middle center you finish?.. good! ## Take 10 min for a luch <svg style="height:0.8em;top:.04em;position:relative;" viewBox="0 0 448 512"><path d="M350.85 129c25.97 4.67 47.27 18.67 63.92 42 14.65 20.67 24.64 46.67 29.96 78 4.67 28.67 4.32 57.33-1 86-7.99 47.33-23.97 87-47.94 119-28.64 38.67-64.59 58-107.87 58-10.66 0-22.3-3.33-34.96-10-8.66-5.33-18.31-8-28.97-8s-20.3 2.67-28.97 8c-12.66 6.67-24.3 10-34.96 10-43.28 0-79.23-19.33-107.87-58-23.97-32-39.95-71.67-47.94-119-5.32-28.67-5.67-57.33-1-86 5.32-31.33 15.31-57.33 29.96-78 16.65-23.33 37.95-37.33 63.92-42 15.98-2.67 37.95-.33 65.92 7 23.97 6.67 44.28 14.67 60.93 24 16.65-9.33 36.96-17.33 60.93-24 27.98-7.33 49.96-9.67 65.94-7zm-54.94-41c-9.32 8.67-21.65 15-36.96 19-10.66 3.33-22.3 5-34.96 5l-14.98-1c-1.33-9.33-1.33-20 0-32 2.67-24 10.32-42.33 22.97-55 9.32-8.67 21.65-15 36.96-19 10.66-3.33 22.3-5 34.96-5l14.98 1 1 15c0 12.67-1.67 24.33-4.99 35-3.99 15.33-10.31 27.67-18.98 37z"/></svg> ### Let's move to the other Sprint!